Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Calculating Distances Between Points


Q3Point3D_Distance

You can use the Q3Point3D_Distance function to determine the distance between two three-dimensional points.

float Q3Point3D_Distance (
const TQ3Point3D *p1, 
const TQ3Point3D *p2);
p1
A three-dimensional point.
p2
A three-dimensional point.
DESCRIPTION
The Q3Point3D_Distance function returns, as its function result, the absolute value of the distance between points p1 and p2.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996